Automatic Finite Volume Discretizations Through Symbolic Computations

نویسندگان

  • Karl Rupp
  • Florian Rudolf
  • Josef Weinbub
  • Ansgar Jüngel
  • Tibor Grasser
چکیده

The finite volume method is a popular method for the solution of systems of partial differential equations whenever local conservation properties are desired. However, engineering software usually does not reflect the underlying continuous mathematical formulation internally, but instead implements the discrete system directly, sacrificing a higher-level representation. As a consequence, the discretization code needs to be altered whenever the mathematical formulation changes. For modeling purposes, however, it is often desirable to only modify the mathematical formulation and let the software deal with the derivation of the discrete equations. In the context of computational fluid dynamics, OpenFOAM [1] has successfully demonstrated that such a goal can in principle be achieved. We present results obtained from coupling the symbolic computation library ViennaMath [2] to a finite volume code to solve systems of PDEs on structured and unstructured grids in one, two, and three dimensions. As an example, a fully automatic Scharfetter-Gummel-like stabilization [3] of a finite volume method for a drift-diffusion system in the context of semiconductor device simulation is discussed. Nonlinear couplings are automatically handled through Picard iterations or a globalized Newton-Raphson scheme. Moreover, we demonstrate that the mathematical formulation can be easily changed to include additional details in the mathematical model. No recompilation of the source code is required, hence our approach is also suitable for graphical user interfaces as well as scripting languages such as Python, which are frequent requirements for engineering purposes.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

FINGER: A Symbolic System for Automatic Generation of Numerical Programs in Finite Element Analysis

FINGER iS a Lisp-based system to derive formulas needed in finite element analysis, and to generate FORTRAN code from these formulas. The generated programs can be used with existing, FORTRAN-based finite element analysis packages. This approach aims to replace tedious hand computations that are time consuming and error prone. The design and implementation of FINGER are presented. Techniques fo...

متن کامل

Explicit and Averaging A Posteriori Error Estimates for Adaptive Finite Volume Methods

Local mesh-refining algorithms known from adaptive finite element methods are adopted for locally conservative and monotone finite volume discretizations of boundary value problems for steady-state convection-diffusion-reaction equations. The paper establishes residual-type explicit error estimators and averaging techniques for a posteriori finite volume error control with and without upwind in...

متن کامل

Discretizations of Convection Terms in Hybrid Mimetic Mixed Methods

We present different ways, coming from Finite Volume or Mixed Finite Element frameworks, to discretize convection terms in Hybrid Finite Volume, Mimetic Finite Difference and Mixed Finite Volume methods for elliptic equations. We compare them through several numerical tests, and we present an application to a system modeling miscible flows in porous media.

متن کامل

Robust numerical methods for saturated-unsaturated flow with dry initial conditions in heterogeneous media

A robust numerical method for saturated-unsaturated flow is developed which uses a monotone discretization and variable substitution. This method is compared to a conventional formulation and to a two phase (active air phase) model. On some published test examples of infiltration into dry media, the variable substitution method shows an order of magnitude improvement (in terms of nonlinear iter...

متن کامل

Eulerian Geometric Discretizations of Manifolds and Dynamics

This thesis explores new methods for geometric, structure-preserving Eulerian discretizations of dynamics, including Lie advection and incompressible fluids, and the manifolds in which these dynamics occur. The result is a novel method for discrete Lie advection of differential forms, a new family of structure-preserving fluid integrators, and a new set of energies for optimizing meshes appropr...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014